<?php

//Route::group(['middleware' => 'web', 'domain' => env('SMALL_API_HOST',''), 'namespace' => 'Modules\SmallApi\Http\Controllers'], function()
Route::group([ 'domain' => env('SMALL_API_HOST',''), 'namespace' => 'Modules\SmallApi\Http\Controllers'], function()
{
    Route::post('api-upload_one_file', ['as' => 'api_upload_one_file', 'route_name' => '图片上传', 'uses' => 'IndexController@upload_one_file']); //单文件上传


    Route::get('/', 'SmallApiController@index');
    Route::get('sql_data_init', 'InitController@index');
    Route::post('small_login_in', ['as' => 'small_login_in', 'uses' => 'IndexController@small_login_in']);  //小程序授权登录
    Route::post('mini_wx_login_bind_phone', ['as' => 'mini_wx_login_bind_phone', 'uses' => 'IndexController@mini_wx_login_bind_phone']);  //小程序绑定手机号登录
    Route::post('small_username_register', ['as' => 'small_username_register', 'uses' => 'IndexController@username_register']);  //账号密码注册
    Route::post('small_username_login', ['as' => 'small_username_login', 'uses' => 'IndexController@username_login']);  //账号密码登录
//    Route::get('small_get_openid', ['as' => 'small_get_openid', 'uses' => 'IndexController@get_openid']);  //

    require_once __DIR__.'/temp_route/wu_route.php';
    require_once __DIR__.'/temp_route/huqin_route.php';
    require_once __DIR__.'/temp_route/yangxiaodong_route.php';

});
